package com.gistmap.dao;

import com.gistmap.bean.Article;
import com.gistmap.dto.ArticleDto;
import com.gistmap.dto.ArticleIndexDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface ArticleDao {

    void save(Article article);

    List<Article> getAll();

    List<Article> getByPage(Map map);

    List<ArticleIndexDto> randomGet(Map map);

    int count(Integer id);

    ArticleDto get(String aid);


    int getArtCount(@Param("uid")Integer id);

    List<ArticleIndexDto> ramdomMain();
}
